package com.daka.vo.response;

import com.daka.entity.Member;
import lombok.Data;
import lombok.ToString;

/**
 * Created by yangx
 * CreateTime: 2016/9/22 10:26
 */
@Data
@ToString
public class CheckUserVo {
    private Member member;
    private Boolean flag;
    private Boolean havingInsurance;
    private String inviteCode;

    public static CheckUserVo build(Member member,Boolean flag,String inviteCode,Boolean havingInsurance){
        CheckUserVo checkUserVo = new CheckUserVo();
        checkUserVo.setMember(member);
        checkUserVo.setFlag(flag);
        checkUserVo.setInviteCode(inviteCode);
        checkUserVo.setHavingInsurance(havingInsurance);
        return checkUserVo;
    }
}
